<%-- 
    Document   : Upload
    Created on : Mar 22, 2011, 12:07:24 AM
    Author     : Tiong Jia Ming
    Admin No   : 0900960
    Class      : DISM/FT/2A/02
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<script language="javascript">
    function check(){
        if(document.FileUpload.file.value==""){
            alert("Hello");
            return true;
        }
        return true;
    }
</script>
<script type='text/javascript' src='http://www.scribd.com/javascripts/view.js'></script>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%--
        <form name="FileUpload" action="../FileUpload" enctype="multipart/form-data" method="post" onsubmit="return check()">
            <input name="file" type="file"/>
            <input name="Submit" type="submit" value="Submit"/><br/>
            ${requestScope.error}
        </form>
        --%>
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="200">
            <embed src="Flex/File.swf" type="application/x-shockwave-flash" pluginspage=
                   "http://www.macromedia.com/go/getflashplayer" height="500" width="500"></embed>
        </object>
        
    </body>
</html>
